<?php

/**
 * Advert Model - Database functions related to advert model
 * 
 * @project : Loobica
 * @author  : Dino
 * @date    : 8 Apr 2014
 * 
 */
class Advert_model extends CI_Model {

  function __construct() {
    parent::__construct();
  }

  function get_ad($ad_id = 0, $ad_status = 1) {
    return $this->db->select('*')
                    ->where('advert', (int) $ad_id)
                    ->get('category')
                    ->row_array();
  }

}

?>